import Vue from 'vue'
import Router from 'vue-router'



//产品
const competitionList = r => require.ensure([], () => r(require('./components/competitionList.vue')), 'chunkname-competitionList');

const newGuestStarRule = r => require.ensure([], () => r(require('./components/newGuestStarRule/newGuestStarRule.vue')), 'chunkname-competitionList-rule');

const goldRecipeTutorRule = r => require.ensure([], () => r(require('./components/goldRecipeTutorRule/goldRecipeTutorRule.vue')), 'chunkname-competitionList-rule');

const wealthAccountRule = r => require.ensure([], () => r(require('./components/wealthAccountRule/wealthAccountRule.vue')), 'chunkname-competitionList-rule');

const newPioneerRule = r => require.ensure([], () => r(require('./components/newPioneerRule/newPioneerRule.vue')), 'chunkname-competitionList-rule');

Vue.use(Router)
export default new Router({
  mode:'history',
  routes: [
    {
      path: '/lgbCdn/newCustomer/competitionList/competitionList.html',
      name: 'competitionList',
      component: competitionList,
      meta: {
        title: '新客竞赛列表',
      },
    },

    {
      path: '/lgbCdn/newCustomer/competitionList/newGuestStarRule.html',
      name: 'newGuestStarRule',
      component: newGuestStarRule,
      meta: {
        title: '新客约见之星规则说明',
      },
    },

    {
      path: '/lgbCdn/newCustomer/competitionList/goldRecipeTutorRule.html',
      name: 'goldRecipeTutorRule',
      component: goldRecipeTutorRule,
      meta: {
        title: '金牌陪访导师规则说明',
      },
    },

    {
      path: '/lgbCdn/newCustomer/competitionList/newPioneerRule.html',
      name: 'newPioneerRule',
      component: newPioneerRule,
      meta: {
        title: '新客开拓者规则说明',
      },
    },

    {
      path: '/lgbCdn/newCustomer/competitionList/wealthAccountRule.html',
      name: 'wealthAccountRule',
      component: wealthAccountRule,
      meta: {
        title: '新增财富账户开户规则说明',
      },
    }
  ]
})
